package com.skh.hdevboard;

import com.kaihong.template.opinterface.CommonOperatorAbility;
import ohos.aafwk.content.Intent;
import ohos.ace.ability.AceAbility;
import ohos.global.configuration.Configuration;

/**
 * MainAbility
 */
public class MainAbility extends AceAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        CommonOperatorAbility.getInstance().setContext(this);
    }

    @Override
    public void onStop() {
        super.onStop();
    }

    @Override
    public void onRequestPermissionsFromUserResult(int requestCode, String[] permissions, int[] grantResults) {
        CommonOperatorAbility.getInstance()
                .getPermissionManager()
                .onPermissionResult(requestCode, permissions, grantResults);
    }

    @Override
    public void onConfigurationUpdated(Configuration newConfig) {
        super.onConfigurationUpdated(newConfig);
    }
}
